package com.ibm.cloud.banking.media.repository;

import com.ibm.cloud.banking.media.entity.MediaCardAccountRelEntity;

import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

/**
 * replace desc in here
 *
 * @author HanDong
 * @date 2022/7/17
 */
public interface MediaCardAccountRelRepository extends PagingAndSortingRepository<MediaCardAccountRelEntity, Long> {

    Optional<MediaCardAccountRelEntity> findByCardNo(String cardNo);

    void deleteByAccountNo(String accountNo);
}
